﻿/***********************************************************************
 * <copyright file="IEmployTest.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Tuesday, October 22, 2013
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using BusinessObjects.BussinessDictionary;

namespace DataObjects.StandartInterfaces.Dictionary
{
    /// <summary>
    /// Defines methods to access EmployTest
    /// </summary>
    /// <remarks>
    /// This is a database-independent interface. Implementations are database specific
    /// </remarks>
    public interface IDbOptionDao   
    {
        /// <summary>
        /// Gets the database option.
        /// </summary>
        /// <param name="dbOptionId">The database option identifier.</param>
        /// <returns></returns>
        DbOption GetDbOption(int dbOptionId);


        /// <summary>
        /// Gets the paged.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="currentPage">The current page.</param>
        /// <returns></returns>
        List<DbOption> GetPaged(int unitId, int currentPage);

        /// <summary>
        /// Gets the size of the page.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>

        /// <returns></returns>
        int GetPageSize(int unitId);

        /// <summary>
        /// Gets the database options by unit.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <returns></returns>
        List<DbOption> GetDbOptionsByUnit(int unitId);

        /// <summary>
        /// Gets the database options by unit.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="isActive">if set to <c>true</c> [is active].</param>
        /// <returns></returns>
        List<DbOption> GetDbOptionsByUnit(int unitId, bool isActive);

        /// <summary>
        /// Inserts the database option.
        /// </summary>
        /// <param name="dbOption">The database option.</param>
        string InsertDbOption(DbOption dbOption);
        /// <summary>
        /// Inserts the database option by unit.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <returns></returns>
        string InsertDbOptionByUnit(int unitId);

        /// <summary>
        /// Updates the database option.
        /// </summary>
        /// <param name="dbOption">The database option.</param>
        string UpdateDbOption(DbOption dbOption);

        /// <summary>
        /// Deletes the database option.
        /// </summary>
        /// <param name="dbOption">The database option.</param>
        string DeleteDbOption(DbOption dbOption);
    }
}
